<?php
namespace Products\Model;

class CountryAndIndustry
{
	public $country_industry_id;
	public $country_id;
	public $industry_id;
	public $satatus_country_industry;
	public $industryname;
	
	public function exchangeArray($data){
	
		$this->country_industry_id          = (isset($data['country_industry_id']))         ? $data['country_industry_id']  : null;
		$this->country_id       = (isset($data['country_id']))    ? $data['country_id']	  : null;		
		$this->industry_id        = (isset($data['industry_id']))     ? $data['industry_id']  : null;			
		$this->satatus_country_industry           = (isset($data['satatus_country_industry']))     ? $data['satatus_country_industry']  : null;		
		$this->industryname           = (isset($data['industryname']))     ? $data['industryname']  : null;		
	  }

	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}
}